Why does this simple floating window code not work?

Printable View