Even though it’s possible, I would actually recommend against trying this. If there wasn’t enough reason to stay, it suggests that you are moving with different trajectories as far as your lives are concerned. It’s only going to get harder to make time for the person you broke up with.
I think the issue at the heart of the matter is why you want to keep the other person around. If codependency or convenience or other similar issues are at play, be very careful and considerate as you proceed.
Breaking up is tough. I hope you find the solution you seek.