Not really because most often when working with APIs you figure out what you need then you disproportionately more time using it - UI is used for triggering short running operations - if the cost of finding it is high it's often higher than (not) using the tool. And often it's used to interact with rarely used or unknown features - UI clutter just leads to a mess - not discoverability.
You write software without looking at the screen? I doubt it.
GUIs have no other purpose than providing ways to interact with the software and communicating those controls via our eyes. Buttons are spread across the window because that turns out to be very efficient at both showing users what common features are available, and giving them a way to quickly use those features without having to dig through menus.