If you use this inside a picture and picture window, it does not seem to work. Is it possible to change the `window` scope that this is operating on?