Click Your Desktop to Reveal It: PeekDesktop Brings macOS Sonoma's Hidden Desktop Trick to Windows
You probably know the feeling: you're buried under a dozen open windows, and you just need to grab a file from your desktop. On Windows, the classic approach is Win+D or that sliver of a button at the far right of the taskbar. But if you've ever watched a macOS user casually click their desktop wallpaper to reveal everything underneath, you might have wondered why that isn't a thing on Windows. Well, now it is. PeekDesktop is a lightweight system tray tool that lets you click empty desktop wallpaper (or an empty area of the taskbar) to hide all open windows, and click again to bring them all back exactly where they were.
What It Does
PeekDesktop is a free, open-source utility for Windows 10 and 11 that mimics the macOS Sonoma behavior of revealing the desktop when you click the wallpaper. It's built by Scott Hanselman and lives in your system tray, consuming less than 5 MB of RAM when idle. No admin rights are required, and there's no installer—you just download a zip, extract it, and run the executable.
The core interaction is simple: click empty wallpaper or an empty spot on the taskbar, and all your windows minimize. Click them again (or click any window, the taskbar, or the wallpaper a second time), and everything restores to its exact previous position and state, including maximized windows. The tool distinguishes between clicking empty space and clicking desktop icons or taskbar buttons, so you can still interact with your files and pinned apps normally.
Under the hood, PeekDesktop uses a mix of Windows APIs. It hooks into low-level mouse events with SetWindowsHookEx(WH_MOUSE_LL), identifies what you're clicking with WindowFromPoint and accessibility APIs (MSAA and UI Automation), and manages window state with EnumWindows and SetWindowPlacement. It offers two "peek styles": a default mode that uses Explorer's native Show Desktop behavior, and an experimental "Fly Away" mode that animates windows offscreen (with known quirks around external window management like Win+D).
The tool also includes a built-in auto-updater that downloads new releases, verifies the code signature, and restarts itself in place—so you don't have to manually check for updates.
Why It's Cool
The appeal here is more nuanced than just "it's like macOS." There are several specific things that make PeekDesktop worth looking at:
-
It respects your existing workflow. The default mode uses Explorer's native Show Desktop behavior, which means it plays well with how Windows already manages your desktop. The experimental Fly Away mode is there if you want visual flair, but the sensible default just works.
-
It distinguishes icons from empty space. This is the hard part. A naive click-on-wallpaper approach would trigger every time you try to click a desktop icon. PeekDesktop uses accessibility APIs to determine whether you clicked an icon or empty wallpaper, so you can still drag files and right-click normally without accidentally hiding everything.
-
It restores exact window positions. When you click to bring windows back, PeekDesktop uses
WINDOWPLACEMENTto restore each window to its exact previous position and state. That includes maximized windows—which is something the basic Win+D approach doesn't always handle gracefully. -
It's tiny and self-contained. No installer, no .NET runtime required (it's published as a self-contained release), and under 5 MB RAM usage. You can run it from a USB drive if you want.
-
It updates itself automatically. The auto-updater downloads new versions, verifies the code signature (so you know it's legit), and performs a "swap dance" to restart in place. It's a thoughtful touch that keeps the tool low-maintenance.
-
It's configurable via the system tray. Right-click the tray icon to toggle the feature on and off, enable startup with Windows, or require a double-click on the desktop to trigger the peek. That last option is useful if you find yourself accidentally triggering it too often.
How to Try It
Head over to the GitHub releases page to grab the latest version. There are two download options:
| File | Platform |
|------|----------|
| PeekDesktop-vX.Y.Z-win-x64.zip | Intel/AMD (most PCs) |
| PeekDesktop-vX.Y.Z-win-arm64.zip | ARM64 (Surface Pro X, Snapdragon, etc.) |
No installation needed. Download the zip, extract it, and run PeekDesktop.exe. It will appear in your system tray.
If you prefer using the command line, you can also install it via Winget once the community manifest is accepted:
winget install Hanselman.PeekDesktop
The tool will automatically check for updates and apply them in place. You can find the full source code and documentation at the PeekDesktop repository.
Final Thoughts
PeekDesktop isn't trying to reinvent the Windows desktop—it's solving a specific friction point for people who work with lots of open windows and frequently need to access their desktop. The implementation is thoughtful, the API choices are documented in the engineering deep dive (which is worth reading if you're curious about Windows shell internals), and the tool stays out of your way when you don't need it. If you've ever wished Windows had that macOS wallpaper-click trick, this is the cleanest way to get it. And if you're a developer interested in how Windows hooks and accessibility APIs work in practice, the source code is a solid reference.
Follow @githubprojects for more developer tools and open source projects.
Repository: https://github.com/shanselman/PeekDesktop