Hi, Skypia4656
Welcome to Microsoft Community.
We understand that you are experiencing an issue where opening any window while switching the game back to desktop also causes the game window to pop up, this issue sounds annoying and again, as a Windows user and gamer, I fully understand your frustration! Going by your description, this is actually related to the Windows focus design logic, I have previously played games upstream on Windows 10 and tended to experience the same issue as you when setting the game to windowed mode, the issue occurs on both Windows 10 and Windows 11. This can be due to the fact that Windows recognizes that the game is running at the same time as other programs, but since the game is not full-screened with exclusive focus, the problem you describe occurs at that point.As per the current case, the issue is related to the Windows development logic and there is no relevant setting or registry function to modify the focus locking feature.As we are only support staff, not Microsoft engineers and Microsoft employees, we cannot make creative changes for the functional flaws of Windows, so regarding the problem you are experiencing, we suggest that you can press Windows+F to give your official feedback to Microsoft about your problem and comments, only if you give your feedback, the development team will be aware of the problem situation.After submitting, please share the feedback link here as this will allow others on the forum (including me) to vote for your submission. More votes will increase the attention and priority of the development team. Thank you for your understanding!If you need more help, feel free to reach out.
Best Regards
Nicholas.Z - MSFT | Microsoft Community Support Specialist