A similarly useful approach may be to provide an array of slots where one could add his windows in order of priority. Then one could focus them by number or in the order of adding... Something like in those rts games where you could group units into groups 1-9. I remember there was a patch that went slightly into that direction - focus history comes to mind, without looking there now.
cheers! mar77i