### Godot version

4.0.beta15

### System information

windows 10, nvidia graphics, opengl backend

### Issue description

When using a TileSetAtlasSource on a TileSet with dimensions greater than 799x799 and selecting the Tiles tab in the TileSet editor, all tabs in the right editor panel disappear.

This is likely a regression of https://github.com/godotengine/godot/issues/67942

### Steps to reproduce

see attached video:

https://user-images.githubusercontent.com/5783414/215139823-f78e94c5-5199-452e-b601-76ec0f680748.mp4


### Minimal reproduction project

[LikelyRegressionOf67942.zip](https://github.com/godotengine/godot/files/10520933/LikelyRegressionOf67942.zip)

if (RSG::threaded) {
		WARN_PRINT_ONCE("Using this function with a threaded renderer hurts performance, as it causes a server stall.");
	}
	Vector<ObjectID> ids = instances_cull_aabb(p_aabb, p_scenario);
	return to_int_array(ids);
}
PackedInt64Array RenderingServer::_instances_cull_ray_bind(const Vector3 &p_from, const Vector3 &p_to, RID p_scenario) const {
	if (RSG::threaded) {
		WARN_PRINT_ONCE("Using this function with a threaded renderer hurts performance, as it causes a server stall.");
	}
	Vector<ObjectID> ids = instances_cull_ray(p_from, p_to, p_scenario);
	return to_int_array(ids);
}
PackedInt64Array RenderingServer::_instances_cull_convex_bind(const TypedArray<Plane> &p_convex, RID p_scenario) const {
	if (RSG::threaded) {
		WARN_PRINT_ONCE("Using this function with a threaded renderer hurts performance, as it causes a server stall.");
	}
	Vector<Plane> planes;
	for (int i = 0; i < p_convex.size(); ++i) {
		Variant v = p_convex[i];
		ERR_FAIL_COND_V(v.get_type() != Variant::PLANE, PackedInt64Array());
		planes.push_back(v);
	}
	Vector<ObjectID> ids = instances_cull_convex(planes, p_scenario);
	return to_int_array(ids);
}
RID RenderingServer::get_test_texture() {