If you run:
myProc "var"
#The result will be the same as executing:
Some Code using X_var
You can try to pass things into the uplevel, but it will never work. Your proc would have the same effect if it were written:
ad_proc -public myProc {} {} {
uplevel {
Some Code Using X_var
}
}