### Godot version

26bed8aa85fc2f98e38552a82929e1deb5b29d8a

### System information

Windows 11

### Issue description

Regardless of settings, the project manager (and the editor itself) has always started to run on the first monitor (I have two), as well as the debugged instance window. This does not happen on 4.0 beta 10.

### Steps to reproduce

N/A

### Minimal reproduction project

N/A
#include "display_server_windows.h"
#include "core/io/marshalls.h"
#include "core/math/geometry_2d.h"
#include "main/main.h"
#include "os_windows.h"
#include "scene/resources/texture.h"
#include <avrt.h>
#include <dwmapi.h>
#ifndef DWMWA_USE_IMMERSIVE_DARK_MODE
#define DWMWA_USE_IMMERSIVE_DARK_MODE 20
#endif
#if defined(GLES3_ENABLED)
#include "drivers/gles3/rasterizer_gles3.h"
#endif
#if defined(__GNUC__)
#define GetProcAddress (void *)GetProcAddress
#endif
static String format_error_message(DWORD id) {
	LPWSTR messageBuffer = nullptr;
	size_t size = FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
			nullptr, id, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPWSTR)&messageBuffer, 0, nullptr);
	String msg = "Error " + itos(id) + ": " + String::utf16((const char16_t *)messageBuffer, size);
	LocalFree(messageBuffer);
	return msg;
}
static void track_mouse_leave_event(HWND hWnd) {