### 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

/
return tab_bar->get_tab_count();
}
void TabContainer::set_current_tab(int p_current) {
	tab_bar->set_current_tab(p_current);
}
int TabContainer::get_current_tab() const {
	return tab_bar->get_current_tab();
}
int TabContainer::get_previous_tab() const {
	return tab_bar->get_previous_tab();
}
Control *TabContainer::get_tab_control(int p_idx) const {
	Vector<Control *> controls = _get_tab_controls();
	if (p_idx >= 0 && p_idx < controls.size()) {
		return controls[p_idx];
	} else {
		return nullptr;
	}
}
Control *TabContainer::get_current_tab_control() const {