on UI/Dialog

on UI/Dialog

hello everyone,
Does anyone know main difference between dialog("close") and dialog("destroy"). In particular, I would like to know in details what happens to dialog when it is destroyed. Why do I need to destroy a dialog? Isn't it destroyed when I leave the page where it is created?
Unfortunately UI/Dialog docs do not provide at all any detailed information apart from a single sentence about what the operation does.