local imgui = require('imgui')
local encoding = require 'encoding'
encoding.default = 'CP1251'
u8 = encoding.UTF8
imgui.Process = true
function imgui.OnDrawFrame()
imgui.SetNextWindowSize(imgui.ImVec2(225, 200))
imgui.SetNextWindowPos(imgui.ImVec2(500, 500))
imgui.Begin(u8'Заголовочек', false, 2+4+32)
imgui.Text('Sample text')
imgui.End()
end