This is a project can help you to have a custom titlebar! Widgets can add into titlebar!
pip install CustomTkinterTitlebar --user
repo: https://github.com/littlewhitecloud/Terminal
from customtitlebar import CTT
from tkinter import ttk
from sv_ttk import set_theme
example = CTT()
example.title("TitleBar")
example.geometry("1030x570")
set_theme("dark")
en = ttk.Entry(example.titlebar)
en.pack(fill = "y", expand = True, pady = 1)
example.mainloop()