It needs a full OS stack, from the kernel to the UI toolkit, that is guaranteed to be the same, across all distributions.
Where are the Mac OS X frameworks on GNU/Linux?
Nowhere, because each distribution might be using a total different way to play sounds, music, doing SIMD, process images, accessing databases, UI toolkit ....