refactor(webdesk): Use new API from DocManager (closes #4701)