`mWindow = new ActivityWindowAndroid(xwView.getActivity());` is enough as i understand.
`xwView.getActivity()` should promise to return a `Context` which is `instanceof Activity`.