In unity shadergraph there's a "custom node" that just lets you type in hlsl/glsl or choose a file. You set its inputs and outputs and that becomes its handles. It's pretty nice.
Looks like blender has something reminiscent? Maybe? I haven't used it. https://docs.blender.org/manual/en/latest/render/shader_node...