Exactly this is what i did and loved all my life.
But since i moved from home office to a 'normal' company with a 'normal' office, this doesn't work for me anymore. Getting into the zone is impossible in such environments, at least for me and many devs i know.