triggeringItem in rule

That explanation helped a lot! Now I have a much better notion of what you are trying to accomplish.

In words, what your rule should do to determine which windows are open, is filter the members of your Windows group item to build a set of all open windows. This technique and others are discussed at length in @rlkoshak’s Design Pattern: Working with Groups in Rules post: