Add colliders to them.
Colliders in the correct layer, blocks the messages. Colliders do not use the widget depth directly, but use z position - the closer to the GUI camera, the sooner a collider is hit. Only a single collider is hit at any given moment (unless you forward events or other similar shenanigans).