Really use managed closures for Window callbacks.

A comment already said that callbacks are managed closures, but the code used owned closures.
Managed closures seem a lot more convenient here.