### Godot version

Godot 4.1.dev4

### System information

Ubuntu 22.04.2 LTS 22.04 - Vulkan (Forward+) - integrated Intel(R) HD Graphics 4400 (HSW GT2) () - Intel(R) Core(TM) i7-4600U CPU @ 2.10GHz (4 Threads)

### Issue description

![image](https://github.com/godotengine/godot/assets/85438892/a61e8333-d9f0-40ec-a508-d301850d05e9)

Let's suppose I clicked this item, then scrolled around in my script, and I then wanted to check out the warning's line again. It wouldn't work without selecting another item first.

Should be an easy fix by setting `allow_reselect = true` in the underlying tree.

### Steps to reproduce

N/A

### Minimal reproduction project

N/A
dobreak->set_icon(get_theme_icon(SNAME("Pause"), SNAME("EditorIcons")));
			docontinue->set_icon(get_theme_icon(SNAME("DebugContinue"), SNAME("EditorIcons")));
			vmem_refresh->set_icon(get_theme_icon(SNAME("Reload"), SNAME("EditorIcons")));
			vmem_export->set_icon(get_theme_icon(SNAME("Save"), SNAME("EditorIcons")));
			search->set_right_icon(get_theme_icon(SNAME("Search"), SNAME("EditorIcons")));
			reason->add_theme_color_override("font_color", get_theme_color(SNAME("error_color"), SNAME("Editor")));
			TreeItem *error_root = error_tree->get_root();
			if (error_root) {
				TreeItem *error = error_root->get_first_child();
				while (error) {
					if (error->has_meta("_is_warning")) {
						error->set_icon(0, get_theme_icon(SNAME("Warning"), SNAME("EditorIcons")));
						error->set_custom_color(0, get_theme_color(SNAME("warning_color"), SNAME("Editor")));
						error->set_custom_color(1, get_theme_color(SNAME("warning_color"), SNAME("Editor")));
					} else if (error->has_meta("_is_error")) {
						error->set_icon(0, get_theme_icon(SNAME("Error"), SNAME("EditorIcons")));
						error->set_custom_color(0, get_theme_color(SNAME("error_color"), SNAME("Editor")));
						error->set_custom_color(1, get_theme_color(SNAME("error_color"), SNAME("Editor")));
					}
					error = error->get_next();
				}
			}
		} break;
		case NOTIFICATION_PROCESS: {
			if (is_session_active()) {
				peer->poll();
				if (camera_override == CameraOverride::OVERRIDE_2D) {
					Dictionary state = CanvasItemEditor::get_singleton()->get_state();
					float zoom = state["zoom"];
					Point2 offset = state["ofs"];