### 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
fit_child_in_rect(c, rect);
				right_child_rect = rect;
			}
			if (bottom_editor) {
				fit_child_in_rect(bottom_editor, bottom_rect);
				bottom_child_rect = bottom_rect;
			}
			queue_redraw(); 
		} break;
		case NOTIFICATION_DRAW: {
			Ref<Font> font = get_theme_font(SNAME("font"), SNAME("Tree"));
			int font_size = get_theme_font_size(SNAME("font_size"), SNAME("Tree"));
			bool rtl = is_layout_rtl();
			Size2 size = get_size();
			if (bottom_editor) {
				size.height = bottom_editor->get_offset(SIDE_TOP) - get_theme_constant(SNAME("v_separation"));
			} else if (label_reference) {
				size.height = label_reference->get_size().height;
			}
			Ref<StyleBox> sb = get_theme_stylebox(selected ? SNAME("bg_selected") : SNAME("bg"));
			draw_style_box(sb, Rect2(Vector2(), size));
			Ref<StyleBox> bg_stylebox = get_theme_stylebox(SNAME("child_bg"));
			if (draw_top_bg && right_child_rect != Rect2()) {
				draw_style_box(bg_stylebox, right_child_rect);
			}
			if (bottom_child_rect != Rect2()) {
				draw_style_box(bg_stylebox, bottom_child_rect);
			}
			Color color;
			if (draw_warning || draw_prop_warning) {