### Godot version

v4.1.stable.official [970459615]  < Steam

### System information

Godot v4.1.stable - Debian GNU/Linux trixie/sid trixie - Vulkan (Mobile) - dedicated NVIDIA GeForce GTX 1060 (nvidia) - Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz (6 Threads)

### Issue description

After Godot got upgraded 4.0 -> 4.1, when opening a project from the earlier version, I noticed that the buttons in the confirmation dialog look a bit squiffy:

![Screenshot_20230706_123457](https://github.com/godotengine/godot/assets/441188/eb5dc8e3-9941-4cac-8cb8-17167d1f33bf)

(Somewhat aside, but that dialog should probably be able to deduce and be more precise about whether it's an upgrade or downgrade!)

### Steps to reproduce

1. Have a project from Godot 4.0
2. Upgrade Godot to 4.1
3. Open project manager

Alternatively:
1. Create a new project in 4.1
2. Quit Godot
3. Edit the `project.godot`'s `config/features` to read `4.0` instead of `4.1`
4. Open project manager

### Minimal reproduction project

[default.zip](https://github.com/godotengine/godot/files/11967512/default.zip)

class AcceptDialog : public Window {
	GDCLASS(AcceptDialog, Window);
	Window *parent_visible = nullptr;
	Panel *bg_panel = nullptr;
	Label *message_label = nullptr;
	HBoxContainer *buttons_hbox = nullptr;
	Button *ok_button = nullptr;
	bool hide_on_ok = true;
	bool close_on_escape = true;
	struct ThemeCache {
		Ref<StyleBox> panel_style;
		int buttons_separation = 0;
	} theme_cache;
	void _custom_action(const String &p_action);
	void _update_child_rects();
	static bool swap_cancel_ok;
	void _input_from_window(const Ref<InputEvent> &p_event);
	void _parent_focused();
protected:
	virtual Size2 _get_contents_minimum_size() const override;
	virtual void _update_theme_item_cache() override;
	void _notification(int p_what);
	static void _bind_methods();
	virtual void ok_pressed() {}