See this thread on how to open a file in an already running Slicer instance using the new WebServer module:
Call slicer.app.openUrl instead of slicer.addp.loadFiles([...]) in the last line of the code snippet to load from a DICOMweb URL instead of a local file.