### Godot version

v4.1.beta.custom_build [d3651ea45]

### System information

Windows 11

### Issue description

![1](https://github.com/godotengine/godot/assets/28705694/15c14c93-7ad7-425a-8fb0-bef841b75527)

It's not possible to start text selection on a SpinBox when it's unfocused.

Note: After a bit of digging in the code, I found that clicking on a SpintBox doesn't trigger `SpinBox::gui_input` no matter if it's focused or not. However, releasing mouse left button does trigger the function.

### Steps to reproduce

See the gif.

### Minimal reproduction project

It's simple to reproduce.
DisplayServer::get_singleton()->window_set_ime_position(pos, get_viewport()->get_window_id());
			}
			show_virtual_keyboard();
		} break;
		case NOTIFICATION_FOCUS_EXIT: {
			_validate_caret_can_draw();
			if (get_viewport()->get_window_id() != DisplayServer::INVALID_WINDOW_ID && DisplayServer::get_singleton()->has_feature(DisplayServer::FEATURE_IME)) {
				DisplayServer::get_singleton()->window_set_ime_position(Point2(), get_viewport()->get_window_id());
				DisplayServer::get_singleton()->window_set_ime_active(false, get_viewport()->get_window_id());
			}
			ime_text = "";
			ime_selection = Point2();
			_shape();
			set_caret_column(caret_column); 
			if (DisplayServer::get_singleton()->has_feature(DisplayServer::FEATURE_VIRTUAL_KEYBOARD) && virtual_keyboard_enabled) {
				DisplayServer::get_singleton()->virtual_keyboard_hide();
			}
			if (deselect_on_focus_loss_enabled && !selection.drag_attempt) {
				deselect();
			}
		} break;
		case MainLoop::NOTIFICATION_OS_IME_UPDATE: {
			if (has_focus()) {
				ime_text = DisplayServer::get_singleton()->ime_get_text();
				ime_selection = DisplayServer::get_singleton()->ime_get_selection();
				if (!ime_text.is_empty()) {
					selection_delete();
				}
				_shape();
				set_caret_column(caret_column);