Like for example icon = preload("uid://b8usw1xoqimkf"),
Ctrl + clicking/ go to definition on a uid string should open the corresponding file (.png in this example). Or/and show what the file path is on mouse hover.
Maintainer edit: This is supported by Godot's language server and the feature depends on the Zed editor adding support for documentation links. The feature will be available once this is implemented: zed-industries/zed#33587