The OnScreenWidgetPanel has functions to handle the maximizing and minimizing of the panel, however, I could not find a property to "enable" the button. Also, calling the functions directly (both through WidgetManager and PanelManager) does not do anything.