make gywindow resizable and scrollable, accept dpi keyword