winframe class : Activate() method
Activates the window.
winframe winframeIns = wfp.GetActive(); // Gets a window that has focus.
If this method is executed on a minimized window, it will return to its pre-minimized state and become active.
Links for reference