glview uses rect instead of size

this is because it could be needed if you want to create a view
inside a window in an specific position
Merge pull request #5273 from ricardoquesada/glview_with_rect

glview uses rect instead of size