(1) What the screenshot shows is not a “popup” in the “classical” sense - thus there’s no “window handle”. This would only be the case if a further browser window would open.
(2) Thus the Java Snippet code will not help. Instead please use the Find Elements and / or potentially, (if the page uses <frame> or <iframe>) Frame nodes to interact with the shown overlay.