SWindow is not transparent

I’m trying to create a SWindow and put an image in it with a transparent background, but the background remains black. How can I fix this?