Replace usage of Item.window with OpenGLInfo attached property

Change-Id: I53224e2abb2820f3fc472b8b4b42a4cac59d79f5
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>