### Godot version

v4.0.3.stable.official [5222a99f5]

### System information

Windows 11, AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx     2.10 GHz

### Issue description

  The editor crashes when it is minimised if it isn't the foreground window, eg. via Windows key + M.  This didn't occur in 4.0.2, but is now occurring in 4.0.3. I'll just mention that /interface/editor/save_on_focus_loss is false because another issue mentions something like this but with that property set to true.

### Steps to reproduce

N/A

### Minimal reproduction project

N/A
(uint32_t)window->width,
				 (uint32_t)window->height,
				 1,
			};
			err = vkCreateFramebuffer(device, &fb_info, nullptr, &window->swapchain_image_resources[i].framebuffer);
			ERR_FAIL_COND_V(err, ERR_CANT_CREATE);
		}
	}
	
	if (separate_present_queue) {
		const VkCommandPoolCreateInfo present_cmd_pool_info = {
			 VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO,
			 nullptr,
			 0,
			 present_queue_family_index,
		};
		err = vkCreateCommandPool(device, &present_cmd_pool_info, nullptr, &window->present_cmd_pool);
		ERR_FAIL_COND_V(err, ERR_CANT_CREATE);
		const VkCommandBufferAllocateInfo present_cmd_info = {
			 VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO,
			 nullptr,
			 window->present_cmd_pool,
			 VK_COMMAND_BUFFER_LEVEL_PRIMARY,
			 1,
		};
		for (uint32_t i = 0; i < swapchainImageCount; i++) {
			err = vkAllocateCommandBuffers(device, &present_cmd_info,
					&window->swapchain_image_resources[i].graphics_to_present_cmd);
			ERR_FAIL_COND_V(err, ERR_CANT_CREATE);
			const VkCommandBufferBeginInfo cmd_buf_info = {