vcl: move resource functions from window.cxx to resource.cxx

Change-Id: I050cb975dfa6ba20a6a840f24d30745fbafbfaef