Waits for window name to be destroyed. This is typically used to wait for a user to finish interacting with a dialog box before using the result of that interaction. Returns an empty string.