Focus the window when the editor is clicked

Prevents issue where the cursor blinks but an iframe is focused,
so typing doesn't end up in the editor.