How to create standalone applications for Windows with a [G]UI in Julia 1.11 or 1.12

There is a basic example in the PackageCompiler source: PackageCompiler.jl/examples/MyLib at master · JuliaLang/PackageCompiler.jl