display_in_viewer function

Display text content in Viewer window.