I live in the US in a "platinum rated" bike city (so there are a relatively high amount of bike commuters) and have gone through drive throughs on my bike a handful of times. Every time I have been served but told not to do it again.
But where it’s common the workers often look the other way.
During the pandemic most fast food places locked their lobbies and only did drive-through, which meant truckers couldn't get food because workers wouldn't serve them due to policies the companies refused to adjust.
I remember some police departments were volunteering to go through the drive-throughs for truckers.
They're not staffed the same way at night as they are during the day.