Add use of valid_handle?, using @handle instead of handle where possible.
Adding Window#foreground? for determining if a window is the foreground (focused) window. Also adding Window#foregroundize which attempts to make a window the foreground window. There are many restrictions around this, so the call won't necessarily succeed.
Avoiding namespace pollution.