adds $window access to Path()