When the ghost is trying to give Colonel Rimfire his hat and gun back, he walks thru a wall carrying both items. While ghosts can pass thru walls, material items like hats and guns cannot.
There are curtains hanging on a wall but they are not covering a window, just a plain wall.