My aim is to use the recent macro \AddToHook{shipout/background} instead of the depreciated package background. How can I change the following MWE for this purpose ?
MWE
\documentclass[11pt]{book}
\usepackage{xcolor,tikz}
\usetikzlibrary{calc}
%
\RequirePackage[contents={}]{background}
\backgroundsetup{
scale = 1 ,
opacity = 1 ,
angle = 0 ,
color = gray ,
contents={%
\begin{tikzpicture}[every node/.style={inner sep=0pt}]
\draw[line width=2pt] ($(current page.north west) +(2.3in,-0.15in)$) --
($(current page.north west) +(0.25in,-0.15in)$) -- ($(current page.north west)
+(0.25in,-0.5in)$);
\draw[line width=0.2pt] ($(current page.north west) +(2.3in,-0.15in)$) --
($(current page.north) +(-0.15in,-0.15in)$);
\draw[line width=2pt] ($(current page.south east) +(-2.3in,0.05in)$) --
($(current page.south east) +(-0.25in,0.05in)$) -- ($(current page.south east)
+(-0.25in,0.5in)$);
\end{tikzpicture}%
}
}%
\begin{document}
Test
\end{document}

