Some window managers block -topmost or lift() behavior unless explicitly permitted, which can override what Tkinter tries to do.
Could you confirm whether the KDE window focus behavior changes if you enable "Focus stealing prevention: None" in the Window Management settings under KDE System Settings?