By design, the UI Builder will not ask for confirmation if there are no unsaved changes in the document. It is assumed that it's the intention of the user to open a new document and adding a confirmation step here would be detrimental to the user experience.
The workflow is the same as opening a new scene (File > New Scene), when there are no unsaved changes in the current scene. A new scene is simply opened without asking for confirmation.