function isActiveElement(element) {
    return getActiveElement() === element;
}
Returns true if the focused window active element matches
the provided element. Falls back to the main window if no
window has focus.