When the KCL Code window is open, there’s a tradeoff making the window wide enough so you can see the code without wrapping (harder to read), and with having a reasonably-large 3D workspace.
Being able to undock - or whatever the framework’s term for it is - that window and move it to another monitor would be a huge win for code-first modelers: a full monitor for the 3D workspace, plus a large code window on another.
I do understand some frameworks make this difficult, and even Fusion 360 doesn’t support anything outside the main application window.