### Tested versions

v4.2.stable.official [46dc27791]

### System information

Windows 11- Godot v4.2.stable.official [46dc27791] - Vulkan (Forward+)

### Issue description

![image](https://github.com/godotengine/godot/assets/46812028/f57e3f30-b3c4-4a83-8793-64a58bd18220)


### Steps to reproduce

Create a new project and select a color in modulate

### Minimal reproduction project (MRP)

N/A
add_preset(color);
	emit_signal(SNAME("preset_added"), color);
}
void ColorPicker::_pick_button_pressed() {
	is_picking_color = true;
	set_process_internal(true);
	if (!picker_window) {
		picker_window = memnew(Popup);
		picker_window->set_size(Vector2i(1, 1));
		picker_window->connect("visibility_changed", callable_mp(this, &ColorPicker::_pick_finished));
		add_child(picker_window, false, INTERNAL_MODE_FRONT);
	}
	picker_window->popup();
}
void ColorPicker::_pick_finished() {
	if (picker_window->is_visible()) {
		return;
	}
	if (Input::get_singleton()->is_key_pressed(Key::ESCAPE)) {
		set_pick_color(old_color);
	} else {
		emit_signal(SNAME("color_changed"), color);
	}
	is_picking_color = false;
	set_process_internal(false);
	picker_window->hide();
}
void ColorPicker::_pick_button_pressed_legacy() {