Compare windows?

I am looking for a way to find differences between windows. Is there a tool that can scan the code for two windows and display all differences?