Cosmic ray-driven winds in the Galactic environment and the cosmic ray spectrum