A node that is loaded through GDExtension can have a custom icon. Icon's path can be added via the `gdextension` file. (See https://github.com/godotengine/godot/pull/75472). Commit makes a mention of this in the C++ tutorial.