Perhaps $window(N/@name).state will be of use?

see also /help Window Identifiers

While the $window identifier is listed as belonging to custom windows,
I find that it usually works on any window.


LonDart