Steps to reproduce were: Toggle fullscreen->F12->F3->ESC 2x->3D View changed to Image Editor and didn't change back. Actually it doesn't work 100% as wanted since it exits the fullscreen when pressing ESC to exit Image Editor but it's hard to support all cases with such a weird spaghetti code.