create new doc on activate source if no active editor

If there is no active editor (and the source pane is hence hidden), this PR would allow `CTRL + 1` to create a new document and give it focus.