Everything within a room is placed on a layer. These layers can be strategically ordered for things like drawing overlays.
Layers are usually created in the Room Editor.
Learn More
Can instances on separate layers interact?
GameMaker Manual - Layer Types and Properties