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

for (int j = 0; j < p_vertex_len; j++) {
					const uint32_t v = *(const uint32_t *)&r[j * vertex_elem_size + offsets[i]];
					w[j] = Vector3::octahedron_decode(Vector2((v & 0xFFFF) / 65535.0, ((v >> 16) & 0xFFFF) / 65535.0));
				}
				ret[i] = arr;
			} break;
			case RS::ARRAY_TANGENT: {
				Vector<float> arr;
				arr.resize(p_vertex_len * 4);
				float *w = arr.ptrw();
				for (int j = 0; j < p_vertex_len; j++) {
					const uint32_t v = *(const uint32_t *)&r[j * vertex_elem_size + offsets[i]];
					float tangent_sign;
					Vector3 res = Vector3::octahedron_tangent_decode(Vector2((v & 0xFFFF) / 65535.0, ((v >> 16) & 0xFFFF) / 65535.0), &tangent_sign);
					w[j * 4 + 0] = res.x;
					w[j * 4 + 1] = res.y;
					w[j * 4 + 2] = res.z;
					w[j * 4 + 3] = tangent_sign;
				}
				ret[i] = arr;
			} break;
			case RS::ARRAY_COLOR: {
				Vector<Color> arr;
				arr.resize(p_vertex_len);
				Color *w = arr.ptrw();
				for (int32_t j = 0; j < p_vertex_len; j++) {
					const uint8_t *v = reinterpret_cast<const uint8_t *>(&ar[j * attrib_elem_size + offsets[i]]);
					w[j] = Color(v[0] / 255.0, v[1] / 255.0, v[2] / 255.0, v[3] / 255.0);
				}
				ret[i] = arr;