Transparent OpenFL Desktop Window Background Confusion

I’m a beginner in Haxe and OpenFL in general but I wanted to see if it’s possible to create a borderless window (can do this) which contains a png image but a transparent background (stage) without having this rectangle window area appearing, yet no matter how much I look up online I can’t find an answer to this specific thing.

Expected (Something like this which I’ve seen done in Flash):


.hx file:


import openfl.display.Bitmap;
import openfl.display.BitmapData;
import openfl.display.Sprite;
import openfl.Assets;
import openfl.Lib;

class Main extends Sprite {
	public function new () {
		super ();
		var bitmap = new Bitmap (Assets.getBitmapData ("assets/openfl.png"));

		bitmap.x = (stage.stageWidth - bitmap.width) / 2;
		bitmap.y = (stage.stageHeight - bitmap.height) / 2;
		//stage.alpha=0; //making it 0 will make everything disappear
		addChild (bitmap);


.xml file:

<?xml version="1.0" encoding="utf-8"?>
	<meta title="Displaying a Bitmap" package="org.openfl.samples.displayingabitmap" version="1.0.0" company="OpenFL" />
	<app main="Main" path="Export" file="DisplayingABitmap" />
	<window borderless="true"/>

	<source path="Source"/>
	<haxelib name="openfl"/>
	<assets path="Assets" rename="assets" />

Thank you so much for your time :heart_eyes:

OpenFL use SDL which doesn’t seem to be able to do that, so I don’t think you can.
But you should ask your question on the openfl forum to have confirmation.