Probably this is not the right place but I worked hard on this and I think this could help someone else.
I read many posts and none of them set a widget in the right position ( coord ) so I figured out this could be a way. I set a new widget where I click.
I create my widget with 2 attributes more ( left and top ) that will be parameters when I call the new statement. My template uses those two parameters to set the left and top attributes and I set them in the postCreate function.
Here is the code:
Template:
