Add source file and update CMakeLists.txt
Add sample window