### 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 (bool(EDITOR_GET("run/output/always_clear_output_on_play"))) {
		log->clear();
	}
	if (bool(EDITOR_GET("run/output/always_open_output_on_play"))) {
		make_bottom_panel_item_visible(log);
	}
	EditorDebuggerNode::get_singleton()->start();
	Error error = editor_run.run(run_filename, write_movie_file);
	if (error != OK) {
		EditorDebuggerNode::get_singleton()->stop();
		show_accept(TTR("Could not start subprocess(es)!"), TTR("OK"));
		return;
	}
	emit_signal(SNAME("play_pressed"));
	if (p_current) {
		run_current_filename = run_filename;
		play_scene_button->set_pressed(true);
		play_scene_button->set_icon(gui_base->get_theme_icon(SNAME("Reload"), SNAME("EditorIcons")));
		play_scene_button->set_tooltip_text(TTR("Reload the played scene."));
	} else if (!p_custom.is_empty()) {
		run_custom_filename = p_custom;
		play_custom_scene_button->set_pressed(true);
		play_custom_scene_button->set_icon(gui_base->get_theme_icon(SNAME("Reload"), SNAME("EditorIcons")));
		play_custom_scene_button->set_tooltip_text(TTR("Reload the played scene."));
	} else {
		play_button->set_pressed(true);
		play_button->set_icon(gui_base->get_theme_icon(SNAME("Reload"), SNAME("EditorIcons")));
		play_button->set_tooltip_text(TTR("Reload the played scene."));
	}