DD worked from home for some years. She was a television subtitler and when she was 'live', subtitling the news or a football match, she could not take any notice of anyone at the door.
She spoke individidually to every deliveryman, postmen etc, carefully described her job and made arrangements for what they would do with deliveries, if she was working when they called. They were really good.
Perhaps, ClareAB, you could sit down with your DH, explain the problemto him in words of one syllable, choose a work room (upstairs?) and when working, go in there, jam the door shut, put on headphones and ignore any attempts to interupt you
He is just behaving like a spoilt child, the kind that stands outside the loo door crying and saying he wants you and is unbothered when you come out. Ignore him.
He only does it to annoy because he knows it teases