graphics/glfw: add option PREEDIT with patches to support running applications such as Minecraft with games/lwjgl3
The patches are still experimental and not committed.
Upstream pool request: https://github.com/glfw/glfw/pull/2130
PR: 278014
Approved by: eduardo (maintainer), arrowd (mentor, implicit)
Differential Revision: https://reviews.freebsd.org/D44490
MFH: 2024Q2
(cherry picked from commit 1c4dc051cb6a2a3119c7ccf0e1ba155a7914761b)