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

switch (i) {
			case RS::ARRAY_VERTEX: {
				if (p_format & ARRAY_FLAG_USE_2D_VERTICES) {
					Vector<Vector2> arr_2d;
					arr_2d.resize(p_vertex_len);
					{
						Vector2 *w = arr_2d.ptrw();
						for (int j = 0; j < p_vertex_len; j++) {
							const float *v = reinterpret_cast<const float *>(&r[j * vertex_elem_size + offsets[i]]);
							w[j] = Vector2(v[0], v[1]);
						}
					}
					ret[i] = arr_2d;
				} else {
					Vector<Vector3> arr_3d;
					arr_3d.resize(p_vertex_len);
					{
						Vector3 *w = arr_3d.ptrw();
						for (int j = 0; j < p_vertex_len; j++) {
							const float *v = reinterpret_cast<const float *>(&r[j * vertex_elem_size + offsets[i]]);
							w[j] = Vector3(v[0], v[1], v[2]);
						}
					}
					ret[i] = arr_3d;
				}
			} break;
			case RS::ARRAY_NORMAL: {
				Vector<Vector3> arr;
				arr.resize(p_vertex_len);
				Vector3 *w = arr.ptrw();