~~~rust
Some((
    Window { ptr: ptr, is_shared: share.is_none() },
    EventReceiver(receiver),
))
~~~

...would be nicer.