With JavaScript API 4.14 there is the sketchViewModel.
A nice tool to let the user add markers to a Layer wherever the user wants.
A new marker is created in the layer when the user uses the left or right mouse button.
The create action with the right mouse button doesn't seem right to me.