Revert "remove wx from agl" This reverts commit e63a5d85297b7fc31c89b13c2ba09aa7d2fd4294. window_handle is also used at many other places, so just move it here isn't allowed