Personal and professional are interconnected and entwined. One will inevitably affect the other.
A tough breakup or a loss of a family member will have a significant effect on your creative output. And a conflict with a coworker will surely affect your mood and behavior at home with your family.
I don’t think there’s a way around it. The best you can do is make sure that your relationships at home and in the office are solid. Expectations should be clear, communication crisp, and everyone aware of any major things that might be happening in any area of your life.
Take good care of yourself in both personal and professional settings. Only then will you be balanced, productive, and immersed in every moment with your loved ones.