### Godot version

v4.2.dev3.official [013e8e3af]

### System information

Windows 10, 64bit

### Issue description

![image](https://github.com/godotengine/godot/assets/35988767/ccdac68c-a60d-491b-a406-d6e3bc1c95ae)
![GIF](https://github.com/godotengine/godot/assets/35988767/7d230faf-0260-4bc3-92e8-11cd026931a8)


### Steps to reproduce

/

### Minimal reproduction project

/
}
			move_child(get_tab_control(tab_from_id), get_tab_control(hover_now)->get_index(false));
			if (!is_tab_disabled(hover_now)) {
				emit_signal(SNAME("active_tab_rearranged"), hover_now);
				set_current_tab(hover_now);
			}
		} else if (get_tabs_rearrange_group() != -1) {
			
			Node *from_node = get_node(from_path);
			TabContainer *from_tabc = Object::cast_to<TabContainer>(from_node);
			if (from_tabc && from_tabc->get_tabs_rearrange_group() == get_tabs_rearrange_group()) {
				
				String tab_title = from_tabc->get_tab_title(tab_from_id);
				Ref<Texture2D> tab_icon = from_tabc->get_tab_icon(tab_from_id);
				bool tab_disabled = from_tabc->is_tab_disabled(tab_from_id);
				Variant tab_metadata = from_tabc->get_tab_metadata(tab_from_id);
				
				if (hover_now != -1) {
					Rect2 tab_rect = tab_bar->get_tab_rect(hover_now);
					if (is_layout_rtl() ^ (p_point.x > tab_rect.position.x + tab_rect.size.width / 2)) {
						hover_now += 1;
					}
				} else {
					hover_now = is_layout_rtl() ^ (p_point.x < tab_bar->get_tab_rect(0).position.x) ? 0 : get_tab_count();
				}
				Control *moving_tabc = from_tabc->get_tab_control(tab_from_id);
				from_tabc->remove_child(moving_tabc);
				add_child(moving_tabc, true);
				set_tab_title(get_tab_count() - 1, tab_title);
				set_tab_icon(get_tab_count() - 1, tab_icon);