I've managed to figure out a workaround for my popup windows. In my case I had to navigate through contextMenu (android.widget.menu and .item) layout, which spawned AlertDialogLayout.
The trick is that that popup windows gets focused, meaning you can still send keyboard input. I've used TAB / DPAD keys to navigate around and ENTER to click on specific View. For example:
// Navigate to 1st item
// Click the current item