### 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
queues[0].queueCount = 1;
		queues[0].pQueuePriorities = queue_priorities;
		queues[0].flags = 0;
		uint32_t enabled_extension_count = 0;
		const char *enabled_extension_names[MAX_EXTENSIONS];
		ERR_FAIL_COND_V(enabled_device_extension_names.size() > MAX_EXTENSIONS, RID());
		for (const CharString &extension_name : enabled_device_extension_names) {
			enabled_extension_names[enabled_extension_count++] = extension_name.ptr();
		}
		VkDeviceCreateInfo sdevice = {
			VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO,
			 nullptr,
			 0,
			 1,
			 queues,
			 0,
			 nullptr,
			 enabled_extension_count,
			 (const char *const *)enabled_extension_names,
			 &physical_device_features, 
		};
		err = vkCreateDevice(gpu, &sdevice, nullptr, &ld.device);
		ERR_FAIL_COND_V(err, RID());
	}
	{ 
		vkGetDeviceQueue(ld.device, graphics_queue_family_index, 0, &ld.queue);
	}
	return local_device_owner.make_rid(ld);
}
VkDevice VulkanContext::local_device_get_vk_device(RID p_local_device) {