Right click on tab bar in which code windows are open and click "Move into New Window". This will open new window with only code editors. And all debug and terminal sessions will remain in older window. see screenshot