What Happens: Lucas notices rooms in weird places, so he, Z, and Corrine try to figure a way out of the school, which they have determined is behaving as a tesseract.
What's Involved: First of all: four dimensions?! Aren't there just the three Lucas mentioned? It's confusing!!
I completely agree. I guess the best way to understand a fourth dimension (or rather, why we can't easily understand it) is described in the story Flatland, by
Edwin A. Abbott. You can find it here. Check it out if you're interested.
If you don't want to read all that, think of it this way: as much as someone living in the one-dimensional "Lineland" could not comprehend the length and width of the two-dimensional "Flatland," and in turn, an inhabitant of "Flatland" would be baffled at the thought of such things as height, we cannot understand anything that we do not perceive as part of our world.
"Lineland"-ers don't experience width, so while we find it easy to reach the other side of a person by walking around him, to our "Lineland" friend, we have "magically" appeared on the other side. As Lucas, Corrine, and Z are three-dimensional, the 4D effects they observed would seem very strange. Rooms and times could shift in ways that apparently make no sense to "Spaceland"-ers.
By the same token, although we are very aware of each of our three dimensions, we find it difficult to imagine living in such a world with only one or two of them.
Now, as was mentioned awhile back, time is sometimes regarded as the fourth dimension, indicating a correlation between space and time. They are said to be "woven" together into a single "spacetime." Einstein's theories of Relativity employ this take. This is also how the episode seems to go. If space and time are so tied to each other, folding and unfolding would affect both. That's how it was suddenly daytime when Z and Lucas stepped "outside."
However, note that other views support a completely spatial fourth dimension, like those we are familiar with. For this it is especially helpful to have a "Flatland" perspective.
Final Verdict: Just maybe.
Extra dimensions haven't been physically proven, and there's still the issue of time travel's existence, but tesseracts (as well as objects with even more dimensions) can be shown mathematically.