Bug 916709 - Implement PopupWindow (WIP v1)