Well, unfortunately that's not how the interview process is set up (and I personally have many other things to do other than to tilt at this particular windmill). However, post-factum, it seems very natural thing to do - I might probably do it if/when I ever interview for a position where it is relevant (though I might just bring a tablet in and show some code in opensource repose). I don't see why it's not expected - I haven't seen anyone who would find it inappropriate. It's not always possible - some people just don't have code suitable for presenting or sufficiently non-IP-encumbered to present - but if you're lucky to be able to do it, why not?
Almost nobody does it because it's not expected. Why not ask future applicants to bring in some code samples and walk through it?