How to type in script editor window when mouse cursor is elsewhere?
Well this is a workaround but if you Toggle Fullscreen Area AltF10, then you can type in the text editor with the mouse cursor outside of blender!



See my answer for other options for maximizing windows in blender.
However full screen area is the only one that works completely, simply maximizing the text editor the header and info bar still get in the way.