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