Load viewer without image

Describe Your Question

Is it possible to load a mode view without a study and add an input type file inside the view to load a local file, which can trigger the viewport loading?

Also what key functions to be called for resetting the viewer and load a new set of files when chosen upon the input?