It's just a proposition to use Unity's built-in "EditorUtility.DisplayDialog" to display the message, instead of rendering it in place of the "Build" button.
I can't count how many times I clicked "Build" and walked away from the computer, only to realize later, that nothing had built :)

Photo Viewer

View photos in a modal