### 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
if (!queues_initialized) {
		return OK;
	}
	VkResult err;
	
	vkWaitForFences(device, 1, &fences[frame_index], VK_TRUE, UINT64_MAX);
	vkResetFences(device, 1, &fences[frame_index]);
	for (KeyValue<int, Window> &E : windows) {
		Window *w = &E.value;
		w->semaphore_acquired = false;
		if (w->swapchain == VK_NULL_HANDLE) {
			continue;
		}
		do {
			
			err =
					fpAcquireNextImageKHR(device, w->swapchain, UINT64_MAX,
							w->image_acquired_semaphores[frame_index], VK_NULL_HANDLE, &w->current_buffer);
			if (err == VK_ERROR_OUT_OF_DATE_KHR) {
				
				
				print_verbose("Vulkan: Early out of date swapchain, recreating.");
				
				_update_swap_chain(w);