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.
James,
Those controls are visible and active only in the mobile state (isRunInMobile).