Edit: Actually I got this now, I just need to change from
var path_x = str(property) + ":x"
input_x.text = str(connected_var.get(node_path_x))
to
input_x.text = str(connected_var.get(property).x)
Thanks for helping me out!
Just deeply reading your code and reminding me about .x
Alright, I am sorry for not quite very clear, not very good at talking, but I want to create some kind of vector input like in Godot inspector.

When you enter the object and vector property path into this function.
var connected_object: Object
var connected_property: NodePath
func connect_property(object: Object, property: NodePath):
# This var for to use in others function
connected_object = object
connected_property = property
# Checks if the object or property path is null
if not connected_var or not connected_property:
return
# Split the path into x and y
# If use "position" as a path
var path_x = str(property) + ":x"#Should get "position:x"
var path_y = str(property) + ":y"#Should get "position:y"
# Finally should be displaying the property to the input but got null.
input_x.text = str(connected_var.get(node_path_x))
input_y.text = str(connected_var.get(node_path_y))
This function should be getting any Vector2 properties to display it to the UI, but display null.
All I have to do is figure out to split the Vector2 correctly; get() don't works with ":x". Please help me fix this or got another idea that works too.
Apologize in advance if you can't understand this.