It's a little difficult to understand exactly what you're asking. It might help to include which platform you are on. It may be a bug, because the following works for me on Windows, but not on OS X (10.7). I have two windows open, one on top of the other. When trying to set focus on the window underneath, on OS X the window does not raise to the foreground.
some_view = other_window.views()