With 20+ years in the industry I can say that I never encountered this kind of thing until fairly recently. I know it was out there, especially with the BigCorps, just not that common when I was looking for work 10ish years ago.
It would be hard for me to stomach an interview like that without just walking out. I do not code on whiteboards.