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

/
Container::_update_theme_item_cache();
	theme_cache.side_margin = get_theme_constant(SNAME("side_margin"));
	theme_cache.panel_style = get_theme_stylebox(SNAME("panel"));
	theme_cache.tabbar_style = get_theme_stylebox(SNAME("tabbar_background"));
	theme_cache.menu_icon = get_theme_icon(SNAME("menu"));
	theme_cache.menu_hl_icon = get_theme_icon(SNAME("menu_highlight"));
	
	theme_cache.icon_separation = get_theme_constant(SNAME("icon_separation"));
	theme_cache.icon_max_width = get_theme_constant(SNAME("icon_max_width"));
	theme_cache.outline_size = get_theme_constant(SNAME("outline_size"));
	theme_cache.tab_unselected_style = get_theme_stylebox(SNAME("tab_unselected"));
	theme_cache.tab_hovered_style = get_theme_stylebox(SNAME("tab_hovered"));
	theme_cache.tab_selected_style = get_theme_stylebox(SNAME("tab_selected"));
	theme_cache.tab_disabled_style = get_theme_stylebox(SNAME("tab_disabled"));
	theme_cache.increment_icon = get_theme_icon(SNAME("increment"));
	theme_cache.increment_hl_icon = get_theme_icon(SNAME("increment_highlight"));
	theme_cache.decrement_icon = get_theme_icon(SNAME("decrement"));
	theme_cache.decrement_hl_icon = get_theme_icon(SNAME("decrement_highlight"));
	theme_cache.drop_mark_icon = get_theme_icon(SNAME("drop_mark"));
	theme_cache.drop_mark_color = get_theme_color(SNAME("drop_mark_color"));
	theme_cache.font_selected_color = get_theme_color(SNAME("font_selected_color"));
	theme_cache.font_unselected_color = get_theme_color(SNAME("font_unselected_color"));
	theme_cache.font_disabled_color = get_theme_color(SNAME("font_disabled_color"));
	theme_cache.font_outline_color = get_theme_color(SNAME("font_outline_color"));
	theme_cache.tab_font = get_theme_font(SNAME("font"));
	theme_cache.tab_font_size = get_theme_font_size(SNAME("font_size"));
}
void TabContainer::_notification(int p_what) {