On Windows it's trivial, just reparent[1] the main window of the subprocess to a window in your process. Technically you should clear a couple of window flags as well, but that's trivial too.
[1]: https://learn.microsoft.com/en-us/windows/win32/api/winuser/...