Can you give some more information about your project? Do you want to create a custom node that adds a node to its parent? Just create the object `var foo = Node2D.new()` and then add it whereever you want it in the tree with `add_child()`. `get_node()` does not add a node it gets an existing node.