First of all, create a Java project to host the application.
Then, right click the java project, select 'New->Other...->XWT->New UI File' and click Next button.
Named the File name as Demo.xwt.
Click Finish button. The project is created. It contains a '*.xwt' file and looks like below.