Here are the practical bits in my experience.
When I had a bf newborn with reflux I was also doing the school run every morning so there isn't any way of just not getting dressed, not leaving the house until noon, etc. Up at 7am, everyone dressed, breakfasted, everyone out, every weekday. So by the time I came home the first hurdles had been overcome. I was dressed and fed and so was the baby ready to start doing something. So I would sit and feed the baby on the sofa, and work on the tablet for a couple of hours, baby would be feeding, sleeping, crying, feeding, sleeping upright on my shoulder during that time so I'd usually be able to work a good couple of hours as I was sitting anyway. I had daily medical appointments for that newborn so I'd go out on the bus daily, baby in the sling, motion of the bus, work on my phone, or read texts and reports on the way. I'd usually get an hour, hour and a half in the evening when oh was on baby duty and doing everything except feeding, after the school run, dinner and bed, where I could do some more, if I wanted. Or sometimes I'd sleep instead. But on a normal day I could work 2.5-3 hours without hardship, and if I pushed it, 4-4.5 hours. Less at weekends.
That baby had no reliable naps, just random ones, and if I'd waited until I was getting a full night of sleep to work I'd have been unable to work for over four years, the first time that child slept a five hour stretch was aged two.
Practically, being mobile in your work, having a good sling, breastfeeding all helped, but also I am the type of person who can't concentrate on one thing at a time and need to be doing lots of things. Maybe that helps.