ok first start DX in builder mode, and import the widget you wish to control. now create a new object ,in its properties window change object type to object controller, make sure the Open/toggle popup object is selected (leave this configuration window open).
Now go over to the Widget you wish to control. Right click on the main image, typically the background and select properties. In the properties window select the "relation" tab, in "popup:" change the drop down menu to Toggle. Now select the summary tab. In "Object ID" at the very bottom it lists a name for the background this "name" needs to be selected in the controler Objects "target object name or group name" drop down menu.
Press ok in the object controllers sub window and apply in the main configuration window and close it.
Now go back to the widgets configuration window and press apply and close. Now the widget visibility will toggle with the controllers button. Remember to save the controller and the widget. The widget must be saved, as you have changed its configurations and it will not work on the actual widget without DX, untill you save it as that widget.
now your button will toggle the visibility of the widget ...

Hope this helps