How to make GUI buttons in only ONE viewport clickable (such that buttons in other viewports are not pressed)?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By toblin

Given two viewports organized under ViewportContainers and a TabContainer:

Main (Node)
    TabContainer
        ViewportContainer
            Viewport
                GridContainer
                    Button1
        ViewportContainer2
            Viewport
                GridContainer
                    Button2

If Button1 and Button2 are located on the same position on the canvas, only one of them (Button2 from what I’ve seen) is registered as pressed.

How to make the buttons pressed when in its respective tab (such that the other is not pressed)?