Programmatically drag and drop element into another element using pure JavaScript (without jQuery, jQueryUI)

Used this codebase and it is working but is there any way to do this using without jQueryUI and jQuery?

function trigger_drop() {
  var draggable = $("#draggable").draggable(),
    droppable = $("#droppable").droppable(),

    droppableOffset = droppable.offset(),
    draggableOffset = draggable.offset(),
    dx = droppableOffset.left - draggableOffset.left,
    dy = droppableOffset.top - draggableOffset.top;

  draggable.simulate("drag", {
    dx: dx,
    dy: dy
  });
}

I referred to this question -> stacklink