Just replace pixels with millimetres and we are safe.
At some point it got anchors in the widgets so you could position it at a distance of another control or the window border (at least). The same effect can be done with layout managers and other tricks.
I’m not sure the same approach would work today.