### Godot version

4.0

### System information

Windows 11

### Issue description

So on my monitor with 2560x1440 resolution retrieved by the `DisplayServer.get_window_size` method shows 2562x1442, which I think is incorrect. A similar result returned by `get_viewport().size`. But it's become correct if the `Resizable` property is turned on.

![image](https://user-images.githubusercontent.com/3036176/212492776-5c09b12e-d25a-4951-8392-54f5a5e3bece.png)


### Steps to reproduce

Create the project, add a label to observe the resolution text, set the full-screen mode in the project settings, toggle off the `Resizable` property, and run the project.

### Minimal reproduction project

[TestResolution.zip](https://github.com/godotengine/godot/files/10418682/TestResolution.zip)

DisplayServer *ds = memnew(DisplayServerWindows(p_rendering_driver, p_mode, p_vsync_mode, p_flags, p_position, p_resolution, p_screen, r_error));
	if (r_error != OK) {
		if (p_rendering_driver == "vulkan") {
			String executable_name = OS::get_singleton()->get_executable_path().get_file();
			OS::get_singleton()->alert("Your video card driver does not support the selected Vulkan version.\n"
									   "Please try updating your GPU driver or try using the OpenGL 3 driver.\n"
									   "You can enable the OpenGL 3 driver by starting the engine from the\n"
									   "command line with the command:\n'./" +
							executable_name + " --rendering-driver opengl3'.\n "
											  "If you have updated your graphics drivers recently, try rebooting.",
					"Unable to initialize Video driver");
		} else {
			OS::get_singleton()->alert("Your video card driver does not support the selected OpenGL version.\n"
									   "Please try updating your GPU driver.\n"
									   "If you have updated your graphics drivers recently, try rebooting.",
					"Unable to initialize Video driver");
		}
	}
	return ds;
}
void DisplayServerWindows::register_windows_driver() {