Creating custom editor windows/tools?

You should look at this video, Michael explain almost all the basic stuff about extending the Editor and where to look in the code itself to see exemple of it.