Repository: godot
Issue: Editor window expanding at random, display server error
Labels: bug,platform:windows,topic:editor,needs testing

### Tested versions

4.3.stable, 4.3.beta3, 4.3.rc3, 4.2.2.stable

### System information

Godot v4.3.stable - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 980 (NVIDIA; 31.0.15.3623) - Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz (8 Threads)

### Issue description

In 4.3.stable, every now and then the editor will expand and start cutting off and flooding the output with the below errors. It seemingly starts happening at random, and I have no way of reproducing it with any accuracy or what actually triggers it. During this time it seems that any time a tooltip or popup is triggered is what expands the editor, and moving away from the tooltip or closing the popup causes it to go back to normal. Saving a scene also does this. Video attached to show the issue.

I don't use any multi-window functionality or undock anything. I only ever have the editor on my main monitor.

Does not happen in 4.2.2.stable or 4.3.beta3, and it did not happen in 4.3.rc3 during the short period I was using it before stable release.

```platform/windows/display_server_windows.cpp:3754 - Unexpected window message 0x82 received for window we cannot recognize in our collection; sequence error.
  Failed to create Windows OS window.
  Failed to create sub window.
  scene/main/window.cpp:635 - Condition "window_id == DisplayServer::INVALID_WINDOW_ID" is true.
  platform/windows/display_server_windows.cpp:1634 - Condition "!windows.has(p_window)" is true. Returning: -1
  Failed to create Windows OS window.
  Failed to create sub window.
  scene/main/window.cpp:635 - Condition "window_id == DisplayServer::INVALID_WINDOW_ID" is true.
  platform/windows/display_server_windows.cpp:1634 - Condition "!windows.has(p_window)" is true. Returning: -1
  Failed to create Windows OS window.
  Failed to create sub window.
  scene/main/window.cpp:635 - Condition "window_id == DisplayServer::INVALID_WINDOW_ID" is true.
  platform/windows/display_server_windows.cpp:1634 - Condition "!windows.has(p_window)" is true. Returning: -1
  Failed to create Windows OS window.
  Failed to create sub window.
  scene/main/window.cpp:635 - Condition "window_id == DisplayServer::INVALID_WINDOW_ID" is true.
  platform/windows/display_server_windows.cpp:1634 - Condition "!windows.has(p_window)" is true. Returning: -1
  platform/windows/display_server_windows.cpp:3198 - Parameter "hicon" is null.
  platform/windows/display_server_windows.cpp:3198 - Parameter "hicon" is null.
  platform/windows/display_server_windows.cpp:1634 - Condition "!windows.has(p_window)" is true. Returning: -1
  platform/windows/display_server_windows.cpp:1634 - Condition "!windows.has(p_window)" is true. Returning: -1
  platform/windows/display_server_windows.cpp:1634 - Condition "!windows.has(p_window)" is true. Returning: -1
  platform/windows/display_server_windows.cpp:1634 - Condition "!windows.has(p_window)" is true. Returning: -1
  platform/windows/display_server_windows.cpp:3198 - Parameter "hicon" is null.
  platform/windows/display_server_windows.cpp:3198 - Parameter "hicon" is null.
  platform/windows/display_server_windows.cpp:3198 - Parameter "hicon" is null.
  Failed to create Windows OS window.
  Failed to create sub window.
```

https://github.com/user-attachments/assets/c6f40ba8-6bd3-47e0-ad5e-ef638ce0f731

Edit: 8/29/2024 - I noticed that on my far left monitor there's a little flashing box that appears whenever I run any project. The editor is always on my main monitor, but I moved it temporarily to my left one to show when this is happening. Unsure if this is related but it only started happening in 4.3, and I find it odd that it's doing something on a different monitor when all of my settings are set to use the primary one.

https://github.com/user-attachments/assets/1593d834-1789-46a6-a186-48ff7c7f8203



### Steps to reproduce

I don't have a way to reproduce the issue. It will just start happening at random. 

### Minimal reproduction project (MRP)

N/A