I am ok with the Gates not being literal but more conceptual constructs since this is the way Harry sees things (very black & white), although the existence of a Gatekeeper seems to mean there are actual Gates of some kind.
An interesting notion is that Rashid is called the Gatekeeper, implying that there is traffic through the Gates from time to time & someone is required to watch over them (what the actual term Gatekeeper means historically) - otherwise why wouldn’t his title be Gatestopper or something?