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

Vector<Vector3> vertices;
	Vector<Vector3> normals;
	for (const Geometry3D::MeshData::Face &f : p_mesh_data.faces) {
		for (uint32_t j = 2; j < f.indices.size(); j++) {
			vertices.push_back(p_mesh_data.vertices[f.indices[0]]);
			normals.push_back(f.plane.normal);
			vertices.push_back(p_mesh_data.vertices[f.indices[j - 1]]);
			normals.push_back(f.plane.normal);
			vertices.push_back(p_mesh_data.vertices[f.indices[j]]);
			normals.push_back(f.plane.normal);
		}
	}
	Array d;
	d.resize(RS::ARRAY_MAX);
	d[ARRAY_VERTEX] = vertices;
	d[ARRAY_NORMAL] = normals;
	mesh_add_surface_from_arrays(p_mesh, PRIMITIVE_TRIANGLES, d);
}
void RenderingServer::mesh_add_surface_from_planes(RID p_mesh, const Vector<Plane> &p_planes) {