getWindowHandles function

Get all window handles.