No, you can always just not even look up and say, "I'm super into this, so come back in 15" or something less condescending than whatever attitude your body expression has with "Bro, you just did. Get on with it" floating in your mind.
Don't bro me dude! ;-)
If we're all devs, we all understand when you've got 12 layers of vars in your head in a mental traceback that all goes poof when you just reply with a "not now". If it's a marketing type person making the interruption, you're just perceived as an asshole. That's on them. They're in marketing so they have no soul anyways ;-)
Instead, someone would just pop their head into your office: “Hey, hi, how ya doing? Can I ask you question?”
Bro, you just did. Get on with it.