### 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
break;
			}
			editor_run.stop();
			run_custom_filename.clear();
			run_current_filename.clear();
			stop_button->set_disabled(true);
			_reset_play_buttons();
			if (bool(EDITOR_GET("run/output/always_close_output_on_stop"))) {
				for (int i = 0; i < bottom_panel_items.size(); i++) {
					if (bottom_panel_items[i].control == log) {
						_bottom_panel_switch(false, i);
						break;
					}
				}
			}
			EditorDebuggerNode::get_singleton()->stop();
			emit_signal(SNAME("stop_pressed"));
		} break;
		case FILE_SHOW_IN_FILESYSTEM: {
			String path = editor_data.get_scene_path(editor_data.get_edited_scene());
			if (!path.is_empty()) {
				FileSystemDock::get_singleton()->navigate_to_path(path);
			}
		} break;
		case RUN_PLAY_SCENE: {
			if (run_current_filename.is_empty() || editor_run.get_status() == EditorRun::STATUS_STOP) {
				run_play_current();
			} else {
				String last_current_scene = run_current_filename; 
				run_play_custom(last_current_scene);