Support non-toplevel windows