I haven't done that but I have seen inside a broken mirror. (That mirror and some dash panels are hanging on the Tree Of Shame @ Deal's Gap!) As I recall, it would probably have to be glued in.
I've wondered about doing that myself, but I wasn't sure where to get the glass the right shape, so I look forward to seeing what sort of responses come in on this.