Custom viewer types aren't currently compatible with the context menu framework. As a result, extensions won't be able to register context menu items in custom viewer types.