For a home office, set boundaries.
I never had an issue with my kid "bothering me" when I was working. They key is in the setup ... Up here in the office, I have two desks. One is for the myriad of Ranch businesses, the other is for my computer consulting business. The wife, kid(s) & dawgs[0] know not to disturb me when I'm at the consulting desk, unless it's an emergency. Compartmentalization and teaching the boundaries to all and sundry is key in any home office.
Household business happens down in the kitchen.
[0] The cats even cooperate, at least for the most part. Go figure.