workspace: set focus on newly opened document
tests: waitUntilPassed
tests: force main window to be active
tests: better behaviour if focus widget is not set