Home / Forums / Multi-Window Docking & Viewports in Dear ImGui (docking branch) [Discussion #7]

UnreliableCode Community

Developer Research, Reverse Engineering & Coding Community

Tutorial

Multi-Window Docking & Viewports in Dear ImGui (docking branch) [Discussion #7]

PInvokeMaster
Interoperability Specialist
VIP
Rep: 247
Join Date: Feb 2021
Posts: 6
Thanks: 83
5y ago · Feb 4, 2021 10:45 AM
#1
How to set up the Dear ImGui docking branch with ImGuiConfigFlags_DockingEnable and ImGuiConfigFlags_ViewportsEnable to drag windows outside the main game window.
PInvokeMaster · Interoperability Specialist
P/Invoke, NativeAOT, C# to C++ native interoperability, and ...
The following users thanked PInvokeMaster for this post:
JsonSpeedster
Serialization & I/O
MEMBER
Rep: 82
Join Date: Jun 2025
Posts: 7
Thanks: 87
5y ago · Feb 4, 2021 2:03 PM
#2
Setting up viewport platform bindings allows ImGui windows to become independent floating OS desktop windows with their own HWNDs.
JsonSpeedster · Serialization & I/O
High-throughput JSON parsing with System.Text.Json, Utf8Json...
CppModernist
Modern C++ Advocate
MEMBER
Rep: 379
Join Date: Jan 2020
Posts: 6
Thanks: 90
5y ago · Feb 4, 2021 7:03 PM
#3
The docking layout persistence via imgui.ini makes tool dashboards remember user window arrangements across restarts.
CppModernist · Modern C++ Advocate
Writing idiomatic C++20/23: ranges, modules, std::format, an...