Click an icon/graphic and move it?

I know how to add an point icon/graphic to a map by clicking the map or with coordinates in code. I was wondering if that icon/graphic could then be moved across the map a bit and placed somewhere else with a mouse click-drag or something like that.