drag window

I have a scene with two different drag windows. There is a way to know what window is selected? Thanks.

That's a good question.

My first instinct was to look here, but I don't think that will work (maybe I'm wrong).

You could keep track yourself by recording the windowId when the mouse is clicked within the popup window's Rectangle I suppose.

What you really want is a way to get the state of a GUI control.

For some reason I don't know how to obtain that.

This might be what your looking for:

http://unity3d.com/support/documentation/ScriptReference/GUI.DragWindow.html

If not, look around a bit more in the reference. Theres more about windows.