reference:plugins:viewer_plugins:custom_image_viewers_the_window_method

As previously described, Directory Opus viewer plugins allow you to create your own custom window to totally handle the viewing of a particular file. This gives you complete control over the behavior of the viewer but does require a lot of extra work to implement the required interface.