vcl: rearrange window.cxx functions

Change-Id: I3f59b87554b858e400056d74e04cd7ca361cf758