Allison Paschke, an artist, and John Danskin, a computer engineer, needed some space from each other.

The couple, who had been married for more than two decades and raised two kids, found themselves squabbling over lots of small things, but they didn’t want to get divorced.

So in 2006, they sold their three-story house in Cranston, R.I.,...