How to handle the chrome window is mininize on taskbar

Some my test scripts has failed due to chrome window is mininized on taskbar and not show on window screen. How to handle this case?

Maximize it first?

    WebUI.maximizeWindow()