Is it possible to access windows objects in a static method? - C#