UI Flow - capture if a pop up window is Open or not and put a conditional logic on that

See here: If {picture} then {do this}