### Godot version

4.0 beta 13

### System information

macOS 13 Ventura, Macbook Pro 2019, 16-inch

### Issue description

In Godot 4, if a editor is expanded to a title bar, double clicking on any button in a title bar such as "Run Project" or "Stop Running Project" will result in minimizing or shrinking a Godot window. It is a small but quite annoying bug and it works in all Godot 4 betas I'v seen. 

### Steps to reproduce

Turn on "Expand to Title" in the Editor Settings/Interface/Editor, than double click on any button in the title area.

### Minimal reproduction project

N/A
if (waiting_for_first_scan) {
		waiting_for_first_scan = false;
		Engine::get_singleton()->startup_benchmark_end_measure(); 
		
		
		RenderingServer::get_singleton()->global_shader_parameters_load_settings(true);
		
		if (!singleton->cmdline_export_mode) {
			EditorResourcePreview::get_singleton()->start();
		}
		_load_docks();
		if (!defer_load_scene.is_empty()) {
			Engine::get_singleton()->startup_benchmark_begin_measure("editor_load_scene");
			load_scene(defer_load_scene);
			defer_load_scene = "";
			Engine::get_singleton()->startup_benchmark_end_measure();
			if (use_startup_benchmark) {
				Engine::get_singleton()->startup_dump(startup_benchmark_file);
				startup_benchmark_file = String();
				use_startup_benchmark = false;
			}
		}
	}
}
void EditorNode::_scan_external_changes() {