It allows you to use .addHandler(e -> {}) to add an action handler to the forms (an event).
FormAPI.customWindowForm("login", "Custom Form")
.addInput("username", "Username", "Enter your username")
.addInput("password", "Password", "Enter your password")...