Place the check mark next to the Minimize windows when a monitor is disconnected option on the right.
Make Windows 11 minimize windows from the disconnected display Similarly, you can revert the above change and turn on the window management option back. Instead, it will move them to the remaining monitor and re-arrange them into a stack.
Download REG files Disable Minimize Windows when a Monitor is Disconnected in Windows 11