GetActiveWindow isn't returning a valid window