create ELPopupMenu to wrap PopupMenu and PopupWindow.