### Godot version

4.0.3.stable

### System information

windows 11

### Issue description

fullscreen on the window node is not working and will show up as a windowed.

### Steps to reproduce

disable Embed Subwindows in Project Settings/Display/Window.
create a window node and set its mode to fullscreen.

### Minimal reproduction project

[fullscreen.zip](https://github.com/godotengine/godot/files/11821834/fullscreen.zip)
ERR_READ_THREAD_GUARD_V(Rect2i());
	Size2i limit = p_parent_rect.size;
	if (p_rect.position.x + p_rect.size.x > limit.x) {
		p_rect.position.x = limit.x - p_rect.size.x;
	}
	if (p_rect.position.y + p_rect.size.y > limit.y) {
		p_rect.position.y = limit.y - p_rect.size.y;
	}
	if (p_rect.position.x < 0) {
		p_rect.position.x = 0;
	}
	int title_height = get_flag(Window::FLAG_BORDERLESS) ? 0 : get_theme_constant(SNAME("title_height"));
	if (p_rect.position.y < title_height) {
		p_rect.position.y = title_height;
	}
	return p_rect;
}
Size2 Window::get_contents_minimum_size() const {
	ERR_READ_THREAD_GUARD_V(Size2());
	return _get_contents_minimum_size();
}
Size2 Window::get_clamped_minimum_size() const {
	ERR_READ_THREAD_GUARD_V(Size2());
	if (!wrap_controls) {
		return min_size;
	}
	return min_size.max(get_contents_minimum_size());
}
void Window::grab_focus() {