abort window creation if the storage is not empty
add some gdi resources