That won't work; the bindings code doesn't call through @mut Window; it uses &mut Window instead.