Drag and Drop: ImGuiButtonFlags_PressedOnDragDropHold focuses the target window.
diff --git a/imgui.cpp b/imgui.cpp
index 383b012..6603d3f 100644
--- a/imgui.cpp
+++ b/imgui.cpp
@@ -5848,7 +5848,10 @@
             hovered = true;
             SetHoveredID(id);
             if (CalcTypematicPressedRepeatAmount(g.HoveredIdTimer + 0.0001f, g.HoveredIdTimer + 0.0001f - g.IO.DeltaTime, 0.01f, 0.70f)) // FIXME: Our formula for CalcTypematicPressedRepeatAmount() is fishy
+            {
                 pressed = true;
+                FocusWindow(window);
+            }
         }
 
     if ((flags & ImGuiButtonFlags_FlattenChilds) && g.HoveredRootWindow == window)