Change input handling order for UI elements

Godot Version

4.2.2

Question

I have a custom drop down menu that I’ve made (I’m aware there exists one already but I’ve decided against using it for reasons) and due to the way that vertical box containers work I cannot adjust the child position of the drop down menu to force it to handle inputs before buttons behind the menu without moving the moving the menu itself.

I can change the Z order which will obviously draw the drop down menu over the buttons ‘behind’ it, but I’m unsure how to force Godot to handle inputs with the drop down first so the buttons behind it do not receive mouse input while the panel is in the way.

I feel like I may be missing an obvious solution but any help would be appreciated. I’m still new to using Godot’s control node system.

When Z index for CanvasItems was introduced, this was discussed.
Currently the Z index has no influence on input order.
See also the docs of Z-index:

You can tell a Ui elment to be top level wich will cause it to be procesed first.
You will howewer need to use code to keep its position realitive to its parent