Try like this:
#Switch to original
WebUI.switchToWindowIndex(0)
WebUI.delay(2)
#And then switch to the second one.
WebUI.switchToWindowIndex(1)
WebUI.delay(2)
With this, I can download from google drive where the download file is higher and google drive cannot scan and I was redirected to another page.