Proof of concept…
Name a component-instance or group say:
file:///C:/
Select it and in the Ruby Console:
UI.openURL(Sketchup.active_model.selection[0].name)
This will open a Windows Explorer window for your C: drive.
Alternatively, name it say:
www.sketchup.com
The repeated openURL command now opens that URL in your default web-browser.
To make a Ruby API command that opens the ‘name’ URL in a webdialog or htmldialog wholly within SketchUp needs you to first create a ‘dialog’ and then pass it the desired URL with set_url etc…