Using entity.getDynamicProperty(objid, "property") could be used I think but you would have to set the dynamic property in the objects script to keep it up to date. But this then defeats the purpose of the front panel as the data would change constantly and wouldn't be what u need for easy editing of shared script.
Now your public idea is pretty cool actually. But the variable would still need set every frame if called from another location or script. Probably easier to use the setVar and getVar still or simply "callfn" passing the data.
I'm not sure? If there was a way of having the data up to date without having to set anything, then it would work great. But the scripts are parsed for dynamic properties when added or saved, they are not runtime at all except for grabbing or setting.
Hope this helps