### 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
stack_dump->clear();
		inspector->clear_stack_variables();
		TreeItem *r = stack_dump->create_item();
		Array stack_dump_info;
		for (int i = 0; i < stack.frames.size(); i++) {
			TreeItem *s = stack_dump->create_item(r);
			Dictionary d;
			d["frame"] = i;
			d["file"] = stack.frames[i].file;
			d["function"] = stack.frames[i].func;
			d["line"] = stack.frames[i].line;
			stack_dump_info.push_back(d);
			s->set_metadata(0, d);
			String line = itos(i) + " - " + String(d["file"]) + ":" + itos(d["line"]) + " - at function: " + String(d["function"]);
			s->set_text(0, line);
			if (i == 0) {
				s->select(0);
			}
		}
		emit_signal(SNAME("stack_dump"), stack_dump_info);
	} else if (p_msg == "stack_frame_vars") {
		inspector->clear_stack_variables();
		ERR_FAIL_COND(p_data.size() != 1);
		emit_signal(SNAME("stack_frame_vars"), p_data[0]);
	} else if (p_msg == "stack_frame_var") {
		inspector->add_stack_variable(p_data);
		emit_signal(SNAME("stack_frame_var"), p_data);
	} else if (p_msg == "output") {
		ERR_FAIL_COND(p_data.size() != 2);
		ERR_FAIL_COND(p_data[0].get_type() != Variant::PACKED_STRING_ARRAY);