You simply create an adapter class with a few annotations:
@Tag("paper-dialog")
@NpmPackage(value = "@polymer/paper-dialog", version = "3.0.1")
@JsModule("./src/paper-dialog.js")
public class PaperDialog extends Component {
[...]
There is also an starter project to create an adapter component:
[Add-on Starter for Flow]
(https://vaadin.com/start/lts/component) This is also the prefered way for Vaadin 14