When `@window` can be not nil?