How might I retrieve the icon of an open window?

Bonus Question (More Difficult): How might I retrieve the file path of a window?