In Starcraft II there are certain spots on the map where Zerg players like to hide Overlords. I imagine that they are on higher level just as the main base is usually on a higher level than the natural expension on most maps. How does the mechanic work? It is clear that any ground unit can't see anything above its level (units that are on the high ground of a ramp), but does that still apply to air units or are those spots special and have therefore special rules?
Think of a vertical column above those spots which is why you can't see the overlords. (Doesn't apply in real life, you can diagonally see the overlord in those spots, but in the context of Starcraft you cannot).
All units have a field of view on the plane they are on. If you have something obstructing your view on the low ground, that obstruction goes straight up as well. However if you have a flying unit of your own (or building as Terran), your flying unit provides the view above that obstruction thereby revealing it to your low ground units which makes it vulnerable to attack.