### Godot version

4.1 dev2, 4.0.3

### System information

Windows 10, ryzen 5900x, radeon 6950xt (driver: 23.2.2)

### Issue description

There are two bugs:
- When I create a new node, it is created outside of the viewport. (as in first video)
- When I run the project, all the content inside the viewport dont appear. (as in second video)
I believe the second issue is related to the first.

Note: these problems are in RTL editors.

https://github.com/godotengine/godot/assets/121864036/84f0d434-0d1b-4c23-9fb0-510257e2e191


https://github.com/godotengine/godot/assets/121864036/b2bc20c7-1e2e-4d04-99e7-d66860ffced2




### Steps to reproduce

Videos explain.

### Minimal reproduction project

N/A
if (p_property.name == "theme_type_variation") {
		List<StringName> names;
		
		
		ThemeDB::get_singleton()->get_default_theme()->get_type_variation_list(get_class_name(), &names);
		if (ThemeDB::get_singleton()->get_project_theme().is_valid()) {
			ThemeDB::get_singleton()->get_project_theme()->get_type_variation_list(get_class_name(), &names);
		}
		names.sort_custom<StringName::AlphCompare>();
		Vector<StringName> unique_names;
		String hint_string;
		for (const StringName &E : names) {
			
			if (unique_names.has(E)) {
				continue;
			}
			hint_string += String(E) + ",";
			unique_names.append(E);
		}
		p_property.hint_string = hint_string;
	}
	if (p_property.name == "mouse_force_pass_scroll_events") {
		
		if (data.mouse_filter != MOUSE_FILTER_STOP) {