Sort of. Only Canvas widget has z order that you can assign to it’s children. If no z order is assigned, the order in which widgets are added counts. Last added are on top.
I wanted to say that your popup should have a border or something as the first thing. Steps 2 and 3 are the same step :D, but you figured it out since it worked for you.