### Godot version

4.1.dev (4d5f10fc3a)

### System information

MacOS 13.1 M1 Pro

### Issue description

When right clicking an element of an array/dictionary it will select it but it will never be unselected (not if you select another node nor by reselecting the node). This leads to a lot of element being marked as selected which makes it a little less readable. When doing a left click it won't select.

### Steps to reproduce

1. export an array 
2. add an element 
3. try left click it won't select
4. try right click it will select

### Minimal reproduction project

N/A
switch (p_what) {
		case NOTIFICATION_DRAW: {
			Ref<StyleBox> sb = get_theme_stylebox(SNAME("bg"));
			draw_style_box(sb, Rect2(Vector2(), get_size()));
			Ref<Font> font = get_theme_font(SNAME("bold"), SNAME("EditorFonts"));
			int font_size = get_theme_font_size(SNAME("bold_size"), SNAME("EditorFonts"));
			int hs = get_theme_constant(SNAME("h_separation"), SNAME("Tree"));
			int icon_size = get_theme_constant(SNAME("class_icon_size"), SNAME("Editor"));
			int w = font->get_string_size(label, HORIZONTAL_ALIGNMENT_LEFT, -1, font_size).width;
			if (icon.is_valid()) {
				w += hs + icon_size;
			}
			int ofs = (get_size().width - w) / 2;
			if (icon.is_valid()) {
				Size2 rect_size = Size2(icon_size, icon_size);
				Point2 rect_pos = Point2(ofs, (get_size().height - icon_size) / 2).floor();
				draw_texture_rect(icon, Rect2(rect_pos, rect_size));
				ofs += hs + icon_size;
			}
			Color color = get_theme_color(SNAME("font_color"), SNAME("Tree"));
			draw_string(font, Point2(ofs, font->get_ascent(font_size) + (get_size().height - font->get_height(font_size)) / 2).floor(), label, HORIZONTAL_ALIGNMENT_LEFT, get_size().width, font_size, color);
		} break;
	}
}
Control *EditorInspectorCategory::make_custom_tooltip(const String &p_text) const {