### 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
if (!is_inside_tree()) {
		return;
	}
	if (!picker_window) {
		picker_window = memnew(Popup);
		picker_window->hide();
		picker_window->set_transient(true);
		add_child(picker_window, false, INTERNAL_MODE_FRONT);
		picker_texture_rect = memnew(TextureRect);
		picker_texture_rect->set_anchors_preset(Control::PRESET_FULL_RECT);
		picker_window->add_child(picker_texture_rect);
		picker_texture_rect->set_default_cursor_shape(CURSOR_POINTING_HAND);
		picker_texture_rect->connect("gui_input", callable_mp(this, &ColorPicker::_picker_texture_input));
		picker_preview = memnew(Panel);
		picker_preview->set_anchors_preset(Control::PRESET_CENTER_TOP);
		picker_preview->set_mouse_filter(MOUSE_FILTER_IGNORE);
		picker_window->add_child(picker_preview);
		picker_preview_label = memnew(Label);
		picker_preview->set_anchors_preset(Control::PRESET_CENTER_TOP);
		picker_preview_label->set_text("Color Picking active");
		picker_preview->add_child(picker_preview_label);
		picker_preview_style_box = (Ref<StyleBoxFlat>)memnew(StyleBoxFlat);
		picker_preview_style_box->set_bg_color(Color(1.0, 1.0, 1.0));