resourceloader: Remove redundant 'window' indirection