Querying existing window class info and creation of window object should be protected since they are not thread safe.