### 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.
if (selection.enabled) {
		delete_text(selection.begin, selection.end);
	}
	deselect();
}
void LineEdit::set_max_length(int p_max_length) {
	ERR_FAIL_COND(p_max_length < 0);
	max_length = p_max_length;
	set_text(text);
}
int LineEdit::get_max_length() const {
	return max_length;
}
void LineEdit::selection_fill_at_caret() {
	if (!selecting_enabled) {
		return;
	}
	selection.begin = caret_column;
	selection.end = selection.start_column;
	if (selection.end < selection.begin) {
		int aux = selection.end;
		selection.end = selection.begin;
		selection.begin = aux;
	}
	selection.enabled = (selection.begin != selection.end);
}
void LineEdit::select_all() {