A couple of folks did this in the 50s for hubs used with Cyclo or Nivex derailleurs. Complicated and expensive, but it made sense with those derailleurs because they're mounted well ahead of the axle and you often wound up wrestling the cogs past them to remove the wheel.
BSA even had a IGH like this - great for fixing flats on bikes with full chaincases.