Not documented.

Source

static CustomEvent internalCreateCustomEvent() {
  return new CustomEvent._internalWrap();
}