For me, editing is part of the flow. I like to edit things as they go through my head, as part of my state of flow, not as a separate chore from which I have to “protect” my draft writing from.
I think of it as an analogy from sculpting. The first draft writing is getting the amorphous block into a rough shape of, e.g., a hand. Then, editing is the fine work to make the bones, skin wrinkles and veins of the hand to make it perfect.
In this analogy, the editing is the hardest, most focus demanding, most detail-oriented work that requires no distractions.
But just offering my perspective here. A good thing about having more software developers in the world is the diversity of tools available for diverse people. So I am happy that this exists.