title: Drag & Drop menu with Draw2D.js
body: <p>How would I create a Drag &amp; Drop menu with Draw2D.js?
  I am making an application using React and can't find how to do it in the docs.
  There is something similar in this <a href="https://freegroup.github.io/draw2d/index.html#/examples/shape_db" rel="nofollow noreferrer">example</a>, but I don't understand how to I would make my own.</p>
  <p>In the example, the author uses methods that aren't in the <a href="https://freegroup.github.io/draw2d/index.html#/api/draw2d/ui" rel="nofollow noreferrer">docs</a>.</p>
  <p><a href="https://i.stack.imgur.com/oECv7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oECv7.png" alt="Code from the example" /></a></p>
  <p>And when I try to copy the code from that example, eslint says that it is wrong.</p>
  <p><a href="https://i.stack.imgur.com/pNLrf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pNLrf.png" alt="enter image description here" /></a></p>