		document.body.appendChild(clone);
		const dialog = document.getElementById("hello-dialog");
		const closeBtn = dialog.querySelector("#closeDialogButton");
		closeBtn.addEventListener("click", () => {
			dialog.addEventListener("ui5-close", () => {
				dialog.parentElement.removeChild(dialog);
			});
			dialog.open = false;
		});

		document.body.appendChild(dialog);
		dialog.open = true;
	});
</script>

</body>
</html>
