Add some directX code to produce window