When you click an app in the Dock, all the windows come forward. Looks like it's using some private equivalent of SetFrontProcessWithOptions.
Topic:
UI Frameworks
SubTopic:
AppKit
Tags: