I recently got my very first MacBook Pro. It has OSX 10.10 Yosemite on it.
After some time, though, I noticed that there are many icons accumulating in my dock that just represent open windows. Note that I do not mean the application icons themselves (see screenshot for clarification).
How can I disable these "open window" icons so that only application icons show up?