refactor(appswitcher): Use new API from DocManager (closes #4693)