I thought that mostly they used some form of illusion, aka hologram, to hide stuff like Hogwarts, platform 9 3/4, and other stuff.The illusion also has a forcefield to block entry working in tandem with it.
I do not think that phasing tech or pocket dimensions were what did it, just illusions...