### Godot version

v4.2.rc2.official [1ba920fad]

### System information

Godot v4.2.rc2 - Windows 10.0.22631 - Vulkan (Forward+) - dedicated AMD Radeon RX 6700 XT (Advanced Micro Devices, Inc.; 31.0.22023.1014) - AMD Ryzen 9 5900X 12-Core Processor (24 Threads)

### Issue description

When I enter fullscreen mode in the editor with shift + f11 while being in or then going to the 3D editor, I can't exit it anymore by pressing the same keybind.

### Steps to reproduce

Create a new Godot project
Press shift + f11 to enable editor fullscreen
Go to the 3D editor
Try to exit editor fullscreen with shift + f11

### Minimal reproduction project

Create a new Godot project
update_spinner_step_frame = frame + 1;
				
				if (EDITOR_GET("interface/editor/show_update_spinner")) {
					update_spinner->set_icon(theme->get_icon("Progress" + itos(update_spinner_step + 1), EditorStringName(EditorIcons)));
				}
			}
			editor_selection->update();
			ResourceImporterTexture::get_singleton()->update_imports();
			bottom_panel_updating = false;
			if (requested_first_scan) {
				requested_first_scan = false;
				OS::get_singleton()->benchmark_begin_measure("editor_scan_and_import");
				if (run_surface_upgrade_tool) {
					run_surface_upgrade_tool = false;
					SurfaceUpgradeTool::get_singleton()->connect("upgrade_finished", callable_mp(EditorFileSystem::get_singleton(), &EditorFileSystem::scan), CONNECT_ONE_SHOT);
					SurfaceUpgradeTool::get_singleton()->finish_upgrade();
				} else {
					EditorFileSystem::get_singleton()->scan();
				}
			}
		} break;
		case NOTIFICATION_ENTER_TREE: {
			get_tree()->set_disable_node_threading(true); 
			Engine::get_singleton()->set_editor_hint(true);
			Window *window = get_window();
			if (window) {
				
				window->connect("titlebar_changed", callable_mp(this, &EditorNode::_titlebar_resized));
			}