Refine new window with previous working directory