Assume exist $36$ distinct numbers with the requested property.
Denote $a_{ij}$ the number situated at the intersection of the row $i$ and the column $j;\;i,j\in\{1,2,3,4,5,6\}$.
Using the given conditions in the first row, we obtain:
$\begin{cases}a_{11}+a_{12}+a_{13}+a_{14}+a_{15}\in\{2022,2023\}\\a_{12}+a_{13}+a_{14}+a_{15}+a_{16}\in\{2022,2023\}\\a_{11}\ne a_{16}\end{cases}\Longrightarrow a_{11}- a_{16}\in\{-1,+1\}\quad(1)$.
Applying the same method in the last row, respectively in the first and the last column, we obtain:
$a_{61}-a_{66}\in\{-1,+1\};\;a_{11}-a_{61}\in\{-1,+1\};\;a_{16}-a_{66}\in\{-1,+1\}\quad(2)$.
WLOG, we can consider $\min\{a_{11},a_{16},a_{61},a_{66}\}=a_{11}$.
From (1) and (2) results:
$\begin{cases}a_{16}=a_{11}+1\\a_{61}=a_{11}+1\end{cases}\Longrightarrow a_{16}=a_{61}$, contradiction with the initial condition (the $36$ numbers are distinct).
Hence: it is not possible to arrange $36$ distinct numbers with the requested property.