Add unsafeWindow API to ACE

Applies to #307