Move Window helper methods to a WindowHelpers trait
auto merge of #2425 : saneyuki/servo/window_helper, r=jdm

Fix #2418