Hi, George!
"depth" is still a valid variable to use to determine depth, even in the latest version of GMS2. When a layer of a certain depth is not found, GMS will make a temporary layer for the sole purpose of displaying instances at the right depth.