I'm using Tkinter 8.6 and macOS 10.15.4
The following code gives a button which pops up a messagebox, which can be dismissed:
import tkinter as tk
from tkinter import messagebox
root = tk.Tk()
button = tk.Button(root, text = 'click here', command = messagebox.askquestion)
button.pack()
root.mainloop()
After dismissing the messagebox, if I change focus to another window and then use command-tab to change focus back to the tk window, the dismissed messagebox reappears but cannot be interacted with. This does not happen if I change focus back to the tk window with a mouse. If I click the button again, the ghost messagebox disappears and a new one appears.
Here's a short video clip. https://www.youtube.com/watch?v=BT1c_8YwBMY At about 9s I command-tab away from the tkinter window and at 10s command-tab back in. You can see that the ghost messagebox can be moved but not dismissed.