Preferences → Editors → Double-Click opens Editor in a Window.
This will open the editors in the original windows.