Detect if any window in the sketch is the active window

we play

with

but only for one window until now?